@tool
extends EditorInspectorPlugin

#region 属性
const EventEditor = preload("res://addons/State_Chart/util/event_editor/event_editor.gd")
var _undo_redo:EditorUndoRedoManager
#endregion
#region 字段
#endregion
#region 信号
#endregion

#region 基类方法
func _can_handle(object: Object) -> bool:
	return true
func _parse_property(object: Object, type: Variant.Type, name: String, hint_type: PropertyHint, hint_string: String, usage_flags: int, wide: bool) -> bool:
	if object is Transition and name == "event" and type == TYPE_STRING_NAME:
		var editor = EventEditor.new(object as Transition,_undo_redo)
		add_property_editor(name,editor)
		return true
	else:
		return false
#endregion
#region 公共方法
func setup(undo_redo:EditorUndoRedoManager):
	_undo_redo = undo_redo
#endregion
#region 私有方法
#endregion
#region 生命周期函数
#endregion
